package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.TestMapper;
import com.itheima.pojo.Test;
import com.itheima.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description:
 * @author: dalao
 * @date: 2020/4/3-19:55
 * @Version: 1.0.0
 * 如果采用cglib动态代理, 需要指定代理类
 */
@Service(interfaceClass = TestService.class)
@Transactional
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;
    @Override
    public List<Test> demo() {
        return testMapper.demo();
    }
}
